-- GENERATED SPELL FOR [Sergeant Bonesnap] --


function spell0_27493(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_27493', 30343, 1)
end

function spell1_27493(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27493', 552, 1)
end

function spell2_27493(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27493', 609, 1)
end

function Sorts_27493(pUnit, Event)
local choix_sorts_27493 = math.random(0, 2)
if choix_sorts_27493 == 0 then
pUnit:RegisterEvent('spell0_27493', 1, 1)
end
if choix_sorts_27493 == 1 then
pUnit:RegisterEvent('spell1_27493', 1, 1)
end
if choix_sorts_27493 == 2 then
pUnit:RegisterEvent('spell2_27493', 1, 1)
end
end

function mob27493_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27493', math.random(1500, 3000), 1)
end

function mob27493_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27493_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27493_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27493, 1, 'mob27493_Action')
RegisterUnitEvent(27493, 2, 'mob27493_Leave')
RegisterUnitEvent(27493, 3, 'mob27493_Kill')
RegisterUnitEvent(27493, 4, 'mob27493_Die')
